#!/bin/bash
VERSION=ethtool
CROSS=aarch64-v01c01-linux-musl
PREFIX=${HOME}/tools/$CROSS/${VERSION}
LIBMNL_PREFIX=${HOME}/tools/$CROSS/libmnl-1.0.5
MNL_CFLAGS="-I$LIBMNL_PREFIX/include"
MNL_LIBS="-L$LIBMNL_PREFIX/lib -lmnl"
export MNL_CFLAGS MNL_LIBS


./autogen.sh

CC=${CROSS}-gcc \
AR=${CROSS}-ar \
./configure --prefix=${PREFIX} --host=aarch64-v01c01-linux-musl

make clean
make CFLAGS=$MNL_CFLAGS LDFLAGS=$MNL_LIBS
make install



